Link Here
|
635 |
gboolean locked, |
635 |
gboolean locked, |
636 |
int position, |
636 |
int position, |
637 |
gboolean exactpos, |
637 |
gboolean exactpos, |
|
|
638 |
gboolean has_arrow, |
638 |
const char *id) |
639 |
const char *id) |
639 |
{ |
640 |
{ |
640 |
PanelMenuButton *button; |
641 |
PanelMenuButton *button; |
Link Here
|
648 |
"tooltip", tooltip, |
649 |
"tooltip", tooltip, |
649 |
"use-menu-path", use_menu_path, |
650 |
"use-menu-path", use_menu_path, |
650 |
"use-custom-icon", use_custom_icon, |
651 |
"use-custom-icon", use_custom_icon, |
651 |
"has-arrow", TRUE, |
652 |
"has-arrow", has_arrow, |
652 |
NULL); |
653 |
NULL); |
653 |
|
654 |
|
654 |
info = panel_applet_register (GTK_WIDGET (button), NULL, NULL, |
655 |
info = panel_applet_register (GTK_WIDGET (button), NULL, NULL, |
Link Here
|
876 |
char *tooltip; |
877 |
char *tooltip; |
877 |
gboolean use_menu_path; |
878 |
gboolean use_menu_path; |
878 |
gboolean use_custom_icon; |
879 |
gboolean use_custom_icon; |
|
|
880 |
gboolean has_arrow; |
879 |
|
881 |
|
880 |
client = panel_gconf_get_client (); |
882 |
client = panel_gconf_get_client (); |
881 |
|
883 |
|
Link Here
|
894 |
key = panel_gconf_full_key (PANEL_GCONF_OBJECTS, id, "use_custom_icon"); |
896 |
key = panel_gconf_full_key (PANEL_GCONF_OBJECTS, id, "use_custom_icon"); |
895 |
use_custom_icon = gconf_client_get_bool (client, key, NULL); |
897 |
use_custom_icon = gconf_client_get_bool (client, key, NULL); |
896 |
|
898 |
|
|
|
899 |
key = panel_gconf_full_key (PANEL_GCONF_OBJECTS, id, "has_arrow"); |
900 |
has_arrow = gconf_client_get_bool (client, key, NULL); |
901 |
|
897 |
panel_menu_button_load (menu_path, |
902 |
panel_menu_button_load (menu_path, |
898 |
use_menu_path, |
903 |
use_menu_path, |
899 |
custom_icon, |
904 |
custom_icon, |
Link Here
|
903 |
locked, |
908 |
locked, |
904 |
position, |
909 |
position, |
905 |
exactpos, |
910 |
exactpos, |
|
|
911 |
has_arrow, |
906 |
id); |
912 |
id); |
907 |
|
913 |
|
908 |
g_free (menu_path); |
914 |
g_free (menu_path); |