Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
3779afaa
Commit
3779afaa
authored
14 years ago
by
Alexandre Savard
Browse files
Options
Downloads
Patches
Plain Diff
[#3854] Align addressbook combobox
parent
3c05cdf4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sflphone-client-gnome/src/contacts/searchbar.c
+14
-6
14 additions, 6 deletions
sflphone-client-gnome/src/contacts/searchbar.c
with
14 additions
and
6 deletions
sflphone-client-gnome/src/contacts/searchbar.c
+
14
−
6
View file @
3779afaa
...
...
@@ -97,7 +97,7 @@ static void select_search_type (GtkWidget *item, GtkEntry *entry)
else
if
(
strcmp
(
"Search contains"
,
gtk_menu_item_get_label
(
GTK_MENU_ITEM
(
item
)))
==
0
)
set_current_addressbook_test
(
E_BOOK_QUERY_CONTAINS
);
addressbook_search
(
GTK_ENTRY
(
entry
));
addressbook_search
(
GTK_ENTRY
(
addressbook
entry
));
}
...
...
@@ -309,13 +309,21 @@ GtkWidget* contacts_searchbar_new ()
GtkWidget
*
ret
;
GtkWidget
*
cbox
;
int
count
;
GtkWidget
*
align
;
int
count
,
cbox_height
,
cbox_width
;
ret
=
gtk_hbox_new
(
FALSE
,
0
);
// Create combo box to select current addressbook
cbox
=
gtk_combo_box_new_text
();
align
=
gtk_alignment_new
(
0
.
0
,
0
.
0
,
1
.
0
,
1
.
0
);
gtk_alignment_set_padding
(
align
,
0
,
2
,
6
,
6
);
gtk_container_add
(
GTK_CONTAINER
(
align
),
cbox
);
gtk_widget_get_size_request
(
GTK_WIDGET
(
cbox
),
&
cbox_width
,
&
cbox_height
);
gtk_widget_set_size_request
(
GTK_WIDGET
(
cbox
),
cbox_width
,
26
);
GSList
*
book_list_iterator
;
book_data_t
*
book_data
;
GSList
*
books_data
=
addressbook_get_books_data
();
...
...
@@ -338,14 +346,14 @@ GtkWidget* contacts_searchbar_new ()
#if GTK_CHECK_VERSION(2,16,0)
GdkPixbuf
*
pixbuf
;
//
GdkPixbuf *pixbuf;
gchar
*
tooltip_text
=
g_strdup
(
"Search is"
);
addressbookentry
=
gtk_entry_new
();
gtk_entry_set_icon_from_stock
(
GTK_ENTRY
(
addressbookentry
),
GTK_ENTRY_ICON_SECONDARY
,
GTK_STOCK_CLEAR
);
pixbuf
=
gdk_pixbuf_new_from_file
(
ICONS_DIR
"/stock_person.svg"
,
NULL
);
gtk_entry_set_icon_from_
pixbuf
(
GTK_ENTRY
(
addressbookentry
),
GTK_ENTRY_ICON_PRIMARY
,
pixbuf
);
//
pixbuf = gdk_pixbuf_new_from_file (ICONS_DIR "/stock_person.svg", NULL);
gtk_entry_set_icon_from_
stock
(
GTK_ENTRY
(
addressbookentry
),
GTK_ENTRY_ICON_PRIMARY
,
GTK_STOCK_FIND
);
gtk_entry_set_icon_tooltip_text
(
GTK_ENTRY
(
addressbookentry
),
GTK_ENTRY_ICON_PRIMARY
,
tooltip_text
);
...
...
@@ -377,7 +385,7 @@ GtkWidget* contacts_searchbar_new ()
G_CALLBACK
(
focus_on_searchbar_out
),
NULL
);
gtk_box_pack_start
(
GTK_BOX
(
ret
),
cbox
,
TRUE
,
TRUE
,
0
);
gtk_box_pack_start
(
GTK_BOX
(
ret
),
align
,
TRUE
,
TRUE
,
0
);
gtk_box_pack_start
(
GTK_BOX
(
ret
),
addressbookentry
,
TRUE
,
TRUE
,
0
);
g_free
(
tooltip_text
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment