comparison pidgin/plugins/contact_priority.c @ 15501:d75099d2567e

gaim_gtk to pidgin. I hope
author Sean Egan <seanegan@gmail.com>
date Sat, 03 Feb 2007 07:23:11 +0000
parents 5fe8042783c1
children 535f002e7b0f
comparison
equal deleted inserted replaced
15500:45ecefd0ce3a 15501:d75099d2567e
85 sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); 85 sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);
86 86
87 ret = gtk_vbox_new(FALSE, 18); 87 ret = gtk_vbox_new(FALSE, 18);
88 gtk_container_set_border_width(GTK_CONTAINER(ret), 12); 88 gtk_container_set_border_width(GTK_CONTAINER(ret), 12);
89 89
90 frame = gaim_gtk_make_frame(ret, _("Point values to use when...")); 90 frame = pidgin_make_frame(ret, _("Point values to use when..."));
91 91
92 vbox = gtk_vbox_new(FALSE, 5); 92 vbox = gtk_vbox_new(FALSE, 5);
93 gtk_container_add(GTK_CONTAINER(frame), vbox); 93 gtk_container_add(GTK_CONTAINER(frame), vbox);
94 94
95 /* Status Spinboxes */ 95 /* Status Spinboxes */
125 check = gtk_check_button_new_with_label(_("Use last buddy when scores are equal")); 125 check = gtk_check_button_new_with_label(_("Use last buddy when scores are equal"));
126 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check), last_match); 126 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check), last_match);
127 g_signal_connect(G_OBJECT(check), "toggled", G_CALLBACK(pref_update), "/core/contact/last_match"); 127 g_signal_connect(G_OBJECT(check), "toggled", G_CALLBACK(pref_update), "/core/contact/last_match");
128 gtk_box_pack_start(GTK_BOX(hbox), check, FALSE, FALSE, 0); 128 gtk_box_pack_start(GTK_BOX(hbox), check, FALSE, FALSE, 0);
129 129
130 frame = gaim_gtk_make_frame(ret, _("Point values to use for account...")); 130 frame = pidgin_make_frame(ret, _("Point values to use for account..."));
131 131
132 vbox = gtk_vbox_new(FALSE, 5); 132 vbox = gtk_vbox_new(FALSE, 5);
133 gtk_container_add(GTK_CONTAINER(frame), vbox); 133 gtk_container_add(GTK_CONTAINER(frame), vbox);
134 134
135 /* Account */ 135 /* Account */
139 /* make this here so I can use it in the option menu callback, we'll 139 /* make this here so I can use it in the option menu callback, we'll
140 * actually set it up later */ 140 * actually set it up later */
141 adj = gtk_adjustment_new(0, -500, 500, 1, 1, 1); 141 adj = gtk_adjustment_new(0, -500, 500, 1, 1, 1);
142 spin = gtk_spin_button_new((GtkAdjustment *)adj, 1, 0); 142 spin = gtk_spin_button_new((GtkAdjustment *)adj, 1, 0);
143 143
144 optmenu = gaim_gtk_account_option_menu_new(NULL, TRUE, 144 optmenu = pidgin_account_option_menu_new(NULL, TRUE,
145 G_CALLBACK(select_account), 145 G_CALLBACK(select_account),
146 NULL, spin); 146 NULL, spin);
147 gtk_box_pack_start(GTK_BOX(hbox), optmenu, FALSE, FALSE, 0); 147 gtk_box_pack_start(GTK_BOX(hbox), optmenu, FALSE, FALSE, 0);
148 148
149 /* this is where we set up the spin button we made above */ 149 /* this is where we set up the spin button we made above */
159 gtk_widget_show_all(ret); 159 gtk_widget_show_all(ret);
160 160
161 return ret; 161 return ret;
162 } 162 }
163 163
164 static GaimGtkPluginUiInfo ui_info = 164 static PidginPluginUiInfo ui_info =
165 { 165 {
166 get_config_frame, 166 get_config_frame,
167 0 /* page_num (Reserved) */ 167 0 /* page_num (Reserved) */
168 }; 168 };
169 169
171 { 171 {
172 GAIM_PLUGIN_MAGIC, 172 GAIM_PLUGIN_MAGIC,
173 GAIM_MAJOR_VERSION, 173 GAIM_MAJOR_VERSION,
174 GAIM_MINOR_VERSION, 174 GAIM_MINOR_VERSION,
175 GAIM_PLUGIN_STANDARD, /**< type */ 175 GAIM_PLUGIN_STANDARD, /**< type */
176 GAIM_GTK_PLUGIN_TYPE, /**< ui_requirement */ 176 PIDGIN_PLUGIN_TYPE, /**< ui_requirement */
177 0, /**< flags */ 177 0, /**< flags */
178 NULL, /**< dependencies */ 178 NULL, /**< dependencies */
179 GAIM_PRIORITY_DEFAULT, /**< priority */ 179 GAIM_PRIORITY_DEFAULT, /**< priority */
180 180
181 CONTACT_PRIORITY_PLUGIN_ID, /**< id */ 181 CONTACT_PRIORITY_PLUGIN_ID, /**< id */