pidgin/plugins/ticker/gtkticker.c

branch
cpw.qulogic.gtk3
changeset 32438
dc8991868906
parent 32394
f883709bdba4
equal deleted inserted replaced
32437:a1093fbc45d2 32438:dc8991868906
126 126
127 gobject_class->finalize = gtk_ticker_finalize; 127 gobject_class->finalize = gtk_ticker_finalize;
128 128
129 widget_class->map = gtk_ticker_map; 129 widget_class->map = gtk_ticker_map;
130 widget_class->realize = gtk_ticker_realize; 130 widget_class->realize = gtk_ticker_realize;
131 /*widget_class->size_request = gtk_ticker_size_request;*/ 131 widget_class->size_request = gtk_ticker_size_request;
132 widget_class->size_allocate = gtk_ticker_size_allocate; 132 widget_class->size_allocate = gtk_ticker_size_allocate;
133 133
134 container_class->add = gtk_ticker_add_real; 134 container_class->add = gtk_ticker_add_real;
135 container_class->remove = gtk_ticker_remove_real; 135 container_class->remove = gtk_ticker_remove_real;
136 container_class->forall = gtk_ticker_forall; 136 container_class->forall = gtk_ticker_forall;
176 176
177 gtk_widget_set_parent(widget, GTK_WIDGET (ticker)); 177 gtk_widget_set_parent(widget, GTK_WIDGET (ticker));
178 178
179 ticker->children = g_list_append (ticker->children, child_info); 179 ticker->children = g_list_append (ticker->children, child_info);
180 180
181 if (gtk_widget_get_realized (GTK_WIDGET(ticker))) 181 if (gtk_widget_get_realized (GTK_WIDGET (ticker)))
182 gtk_widget_realize (widget); 182 gtk_widget_realize (widget);
183 183
184 if (gtk_widget_get_visible (GTK_WIDGET (ticker)) && 184 if (gtk_widget_get_visible (GTK_WIDGET (ticker)) &&
185 gtk_widget_get_visible (widget)) 185 gtk_widget_get_visible (widget))
186 { 186 {
330 attributes.width = widget->allocation.width; 330 attributes.width = widget->allocation.width;
331 attributes.height = widget->allocation.height; 331 attributes.height = widget->allocation.height;
332 #endif 332 #endif
333 attributes.wclass = GDK_INPUT_OUTPUT; 333 attributes.wclass = GDK_INPUT_OUTPUT;
334 attributes.visual = gtk_widget_get_visual (widget); 334 attributes.visual = gtk_widget_get_visual (widget);
335 /*attributes.colormap = gtk_widget_get_colormap (widget);*/ 335 attributes.colormap = gtk_widget_get_colormap (widget);
336 attributes.event_mask = gtk_widget_get_events (widget); 336 attributes.event_mask = gtk_widget_get_events (widget);
337 attributes.event_mask |= GDK_EXPOSURE_MASK | GDK_BUTTON_PRESS_MASK; 337 attributes.event_mask |= GDK_EXPOSURE_MASK | GDK_BUTTON_PRESS_MASK;
338 338
339 attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL /*| GDK_WA_COLORMAP*/; 339 attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP;
340 340
341 window = gdk_window_new (gtk_widget_get_parent_window (widget), 341 window = gdk_window_new (gtk_widget_get_parent_window (widget),
342 &attributes, attributes_mask); 342 &attributes, attributes_mask);
343 #if GTK_CHECK_VERSION(2,18,0) 343 #if GTK_CHECK_VERSION(2,18,0)
344 gtk_widget_set_window (widget, window); 344 gtk_widget_set_window (widget, window);

mercurial